package com.wtwd.campus.service;

import com.wtwd.campus.entity.OrgExpiration;
import com.wtwd.campus.entity.WarningRecord;

import java.util.List;
import java.util.Map;

public interface WarningRecordService {
    //新增一笔记录
    Integer addWarningRecord(WarningRecord record);

    //新增一批组织过期提醒
    Integer addOrgExpirationList(List<OrgExpiration> list);

    //获取未读的组织提醒
    List<OrgExpiration> getUnReadOrgExpirationMess();

    //获取未读信息的条数
    Integer getUnReadCount();

    //分页查询全部消息
    Map<String,Object> queryOrgExpirationByPage(Integer curPage, Integer pageSize);

    //将所有的消息都变成已读
    Integer updateIfRead();
}
